From: Florian Müllner Date: Wed, 9 Feb 2022 18:46:37 +0000 (+0100) Subject: dbusServices: Allow to persist services via environment X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~73 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d7d484a8cd3d6e4334a35f134eb62b8ee7769a07;p=gnome-shell.git dbusServices: Allow to persist services via environment Auto-shutdown prevents debugging a service with tools like d-feet, so allow turning it off with an environment variable. Part-of: --- diff --git a/js/dbusServices/dbusService.js b/js/dbusServices/dbusService.js index 3e2fde06a..8b6a0a119 100644 --- a/js/dbusServices/dbusService.js +++ b/js/dbusServices/dbusService.js @@ -90,6 +90,9 @@ var ServiceImplementation = class { if (!this._autoShutdown) return; + if (GLib.getenv('SHELL_DBUS_PERSIST')) + return; + if (this._holdCount > 0) return;